package com.mxnet.chongjin.supoman.bean;

/**
 * author: Administrator
 * email: lcj270018655@163.com
 * date: 2018/5/8
 */

public class HotMachine {

    /**
     * hotIs : true
     * id : 1
     * robotImgUrl : 8C9C77D29EC34783870A35B9423E008E
     * robotNo : SPM15-B
     */

    private boolean hotIs;
    private String id;
    private String robotImgUrl;
    private String robotNo;

    public boolean isHotIs() {
        return hotIs;
    }

    public void setHotIs(boolean hotIs) {
        this.hotIs = hotIs;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRobotImgUrl() {
        return robotImgUrl;
    }

    public void setRobotImgUrl(String robotImgUrl) {
        this.robotImgUrl = robotImgUrl;
    }

    public String getRobotNo() {
        return robotNo;
    }

    public void setRobotNo(String robotNo) {
        this.robotNo = robotNo;
    }

    @Override
    public String toString() {
        return "HotMachine{" +
                "hotIs=" + hotIs +
                ", id='" + id + '\'' +
                ", robotImgUrl='" + robotImgUrl + '\'' +
                ", robotNo='" + robotNo + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        HotMachine that = (HotMachine) o;

        if (hotIs != that.hotIs)
            return false;
        if (id != null ? !id.equals(that.id) : that.id != null)
            return false;
        if (robotImgUrl != null ? !robotImgUrl.equals(that.robotImgUrl) : that.robotImgUrl != null)
            return false;
        return robotNo != null ? robotNo.equals(that.robotNo) : that.robotNo == null;
    }

    @Override
    public int hashCode() {
        int result = (hotIs ? 1 : 0);
        result = 31 * result + (id != null ? id.hashCode() : 0);
        result = 31 * result + (robotImgUrl != null ? robotImgUrl.hashCode() : 0);
        result = 31 * result + (robotNo != null ? robotNo.hashCode() : 0);
        return result;
    }
}
